package ResponsibilityChain;

/**
 * @author duanzhizhou
 * @date 2024/11/5
 */
public abstract class Manager {
    
    private String name;
    
    private Manager succesor;
    
    public Manager(String name) {
        this.name = name;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public Manager getSuccesor() {
        return succesor;
    }
    
    public void setSuccesor(Manager succesor) {
        this.succesor = succesor;
    }
    
    protected abstract void handle(BizRequest request);
}
